﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MenuAE.ascx.cs" Inherits="Admin_Controls_MenuAE" %>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Thêm sửa menu</a></li>
    </ul>
    <div id="tabs-1">
        <div style="text-align: right;">
            <a href='/Admin/Module/Menu/MenuList.aspx'>
                <input type="button" class="ui-widget-content ui-corner-all textfield cursor" value="Danh sách loại menu" /></a>
        </div>
        <table class="gridadd">
            <tr>
                <td>
                    Tên menu
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" CssClass="ui-widget-content ui-corner-all textfield"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ControlToValidate="txtName"></asp:RequiredFieldValidator>
                </td>
            </tr>
              <tr>
                <td>
                    LinkUrl
                </td>
                <td>
                    <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="ui-widget-content ui-corner-all textfield"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="txtLinkUrl"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Menu Cha
                </td>
                <td>
                    <asp:DropDownList ID="ddlParent" runat="server">
                        <asp:ListItem Value="" Text="Chọn menu cha" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                   <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                        ControlToValidate="ddlMenuType"></asp:RequiredFieldValidator>--%>
                </td>
            </tr>
            <tr>
                <td>
                    Loại menu
                </td>
                <td>
                    <asp:DropDownList ID="ddlMenuType" runat="server">
                        <asp:ListItem Value="" Text="Chọn loại menu" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                        ControlToValidate="ddlMenuType"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Trạng thái
                </td>
                <td>
                    <asp:CheckBox ID="cbIsVisible" runat="server" Checked="true" />
                </td>
            </tr>
            <%if (!MenuId.Equals(Guid.Empty))
              {%>
            <tr>
                <td>
                    Người tạo
                </td>
                <td>
                    <asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Ngày tạo
                </td>
                <td>
                    <asp:Label ID="lblCreatedDate" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Người sửa
                </td>
                <td>
                    <asp:Label ID="lblUpdatedBy" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    Người sửa
                </td>
                <td>
                    <asp:Label ID="lblUpdatedDate" runat="server"></asp:Label>
                </td>
            </tr>
            <%} %>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Width="100px" Text="Thêm" CssClass="ui-widget-content ui-corner-all textfield"
                        OnClick="btnUpdate_Click" />
                </td>
            </tr>
        </table>
    </div>
</div>
